package com.alks.function.mapper.biocontrol.deptwork;

import com.alks.entity.data.entity.CpLastSlipHead;
import com.alks.function.data.dto.biocontrol.deptwork.LastStkDto;
import com.alks.function.data.request.biocontrol.deptwork.LastStkRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2024-03-18
 */
public interface BC_DW_CpLastSlipHeadMapper extends BaseMapper<CpLastSlipHead> {

    /*出入库单表头查询*/
    List<LastStkDto> getLastInHeadQuery(@Param("request") LastStkRequest request, @Param("companyId") String companyId, @Param("slipType") String slipType);

    /*出入库数量和*/
    BigDecimal getLastInQtySum(@Param("request") LastStkRequest request, @Param("companyId") String companyId, @Param("slipType") String slipType);

}
